package com.itheima_16;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;

public class CopyArrayDemo {
    public static void main(String[] args) throws IOException {
        ArrayList<String> arrayList = new ArrayList<String>();

        arrayList.add("中");
        arrayList.add("国");

        BufferedWriter bw = new BufferedWriter(new FileWriter("/Users/oscar/Desktop/HQWork/学习资料/code/mySimpleDateFormat/CopyArray.txt"));

        for (String a : arrayList) {
            bw.write(a);
            bw.newLine();
            bw.flush();
        }

        bw.close();

    }
}
